# $Id: PKGBUILD 69531 2012-04-17 22:53:28Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-file-remove
pkgver=1.52
pkgrel=1
pkgdesc="Remove files and directories"
depends=('perl')
arch=('any')
url="http://search.cpan.org/dist/File-Remove"
license=('GPL' 'PerlArtistic')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/A/AD/ADAMK/File-Remove-$pkgver.tar.gz)
md5sums=('e9d6c33a2aac9789036afb4cc23ed8eb')

build() {
  cd  $srcdir/File-Remove-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
